#include "breakservice.h"
#include <QMessageBox>

BreakService::BreakService(QObject *parent) :
    QObject(parent)
{
//    QTimer *timer = new QTimer(this);
//    connect(timer, SIGNAL(timeout()), this, SLOT(showMessage()));
//    timer->start(5000);
//    QTimer *timer2 = new QTimer(this);
//    connect(timer2, SIGNAL(timeout()), this, SLOT(hideMessage()));
//    timer2->start(7000);
    this->message = new QMessageBox(QMessageBox::Information,"Break","You've got break");
}

void BreakService::showMessage()
{
    message->show();
}
void BreakService::hideMessage()
{
    message->hide();
}
BreakService::~BreakService()
{
    //qDebug() << " destructor";
}
